<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>留言管理页面</title>
</head>
<body>
<div id="mainDiv" class="x-panel">
<div id="titleDiv" class="x-panel-header">留言管理</div>
<div id="bodyDiv">
<div id="toolbarDiv" class="x-toolbar"><!-- 此处是工具栏    注3-->
</div>
<div id="toolbarDiv" class="x-toolbar"></div>
<div id="panelBodyDiv" class="x-panel-body"><!-- 此处是主体部分    注4-->
<TABLE width="90%" border="1" class="datatable" id="tables4">
	<TBODY>
		<TR align="center">
			<TH width="100" noWrap>留言主题</TH>
			<TH width="80" noWrap>留言时间</TH>
			<TH width="100" noWrap>留言者单位</TH>
			<TH width="100" noWrap>留言者电话</TH>
			<TH width="100" noWrap>留言者邮箱</TH>
			<TH width="100" noWrap>留言者地址</TH>
			<TH width="80" noWrap>是否回复</TH>
			<TH width="50" noWrap>操作</TH>
		</TR>
		<c:if test="${empty(list)}">
			<tr align="center">
				<td colspan="5">没有数据</td>
			</tr>
		</c:if>
		<c:forEach var="mess" items="${list}">
			<tr align="center">
				<td><a href="${ctx}/message.do?method=findOneMessage&id=${mess.userId}">${mess.motive}</a></td>
				<td>${mess.createTime}</td>
				<td>${mess.unit}</td>
				<td>${mess.phoneNumber}</td>
				<td>${mess.email}</td>
				<td>${mess.address}</td>
				<c:if test="${mess.revertFlag eq 0}">
					<td><font color="green">否</font></td>
				</c:if>
				<c:if test="${mess.revertFlag eq 1}">
					<td><font color="green">是</font></td>
				</c:if>
				<td>
				<IMG style="cursor: hand;" 
				onclick="window.location.href='${ctx}/message.do?method=deleteMessage&id=${mess.userId}'"
					src="${ctx}/images/icons/delete.gif" title="删除"></td>
			<TR>
		</c:forEach>
	</TBODY>
</TABLE>
</div>
</div>
</div>
</body>
</html>